﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockFinder.Model
{
    public class IBDRatings
    {        
        public DateTime Date { get; set; }
        public int IBDComposite { get; set; }
        public int EPS { get; set; }
        public int RelativeStrength { get; set; }
        public string SMR { get; set; }
        public string AccDist { get; set; }
        public int GroupRSRank { get; set; }
        public string GroupRSRating { get; set; }
        public string StockType { get; set; }
        public bool IsETFOrClosedEndFund { get; set; }
        public bool IsETF { get; set; }
        public decimal AverageTrueRange { get; set; }
        public decimal YearHigh { get; set; }
        public decimal YearLow { get; set; }

        public string Symbol { get; set; }

        //private Symbol _Symbol;
        //public Symbol Symbol
        //{
        //    get
        //    {
        //        if (_Symbol == null) _Symbol = new Symbol();
        //        return _Symbol;
        //    }
        //    set { _Symbol = value; }
        //}

        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendFormat("Symbol: {0}{1}", Symbol, Environment.NewLine);
            stringBuilder.AppendFormat("IBDComposite: {0}{1}", IBDComposite, Environment.NewLine);
            stringBuilder.AppendFormat("EPS: {0}{1}", EPS, Environment.NewLine);
            stringBuilder.AppendFormat("RelativeStrength: {0}{1}", RelativeStrength, Environment.NewLine);
            stringBuilder.AppendFormat("SMR: {0}{1}", SMR, Environment.NewLine);
            stringBuilder.AppendFormat("AccDist: {0}{1}", AccDist, Environment.NewLine);
            stringBuilder.AppendFormat("GroupRSRank: {0}{1}", GroupRSRank, Environment.NewLine);
            stringBuilder.AppendFormat("GroupRSRating: {0}{1}", GroupRSRating, Environment.NewLine);

            return stringBuilder.ToString();
        }
    }
}
